package com.byt.framlib.commonutils.rx;

/**
 * 用来发送消息的RxBusMessage,只有被观察者发出这个类型的消息后,观察者才能做出响应;
 */
public class RxBusBaseMessage<T> {

    private int code;
    private T object;

    public RxBusBaseMessage(int code) {
        this.code = code;
    }

    public RxBusBaseMessage(T object) {
        this.object = object;
    }

    public RxBusBaseMessage(int code, T object) {
        this.code = code;
        this.object = object;
    }

    public RxBusBaseMessage() {

    }

    public int getCode() {
        return code;
    }

    public T getObject() {
        return object;
    }
}
